package com.qf.cx.simplenms.common.utils;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public final class IntegerUtils {

	private static Logger logger = LoggerFactory.getLogger(IntegerUtils.class);

	public static Integer parseInt(final String s) {
		if (s == null) {
			return null;
		}
		try {
			return Integer.parseInt(s);
		} catch (NumberFormatException e) {
			logger.error("", e);
			return null;
		}
	}

	private IntegerUtils() {
	}

}
